#
# Be sure to run `pod lib lint PVNetWorking.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'PVNetWorking'
  s.version          = '0.1.0'
  s.summary          = '基于AFNetWorking的网络框架.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/LongXiapyx/PVNetWorking'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'lizhihui' => 'lizh@qianbao.com' }
  s.source           = { :git => 'https://gitee.com/LongXiapyx/PVNetWorking.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'
  s.source_files = 'PVNetWorking/Classes/Networking.h'
  s.public_header_files = 'PVNetWorking/Classes/Networking.h'
  s.prefix_header_file = 'PVNetworking/Classes/Support Files/PVNetworking.pch'

  s.subspec 'NetworkingManager' do |ss|
  ss.ios.deployment_target = '8.0'
  ss.source_files = 'PVNetWorking/Classes/NetworkingManager/*.*'
  ss.public_header_files = 'PVNetWorking/Classes/NetworkingManager/*.h'
  ss.dependency 'AFNetworking', '~> 3.1.0'
  ss.dependency 'PVNetWorking/NetModel'
  end

  s.subspec 'NetModel' do |ss|
  ss.ios.deployment_target = '8.0'
  ss.source_files = 'PVNetWorking/Classes/NetModel/*.*','PVNetWorking/Classes/Encryption/*.*'
  ss.public_header_files = 'PVNetWorking/Classes/NetModel/*.h','PVNetWorking/Classes/Encryption/*.h'
  ss.dependency 'GTMBase64'
  end

end
